feat(schema): upgrade ACP schema from v0.10.8 to v0.11.2#80
feat(schema): upgrade ACP schema from v0.10.8 to v0.11.2#80PsiACE merged 1 commit intoagentclientprotocol:mainfrom
Conversation
- Regenerate schema bindings and Pydantic models - Add session/close endpoint and CloseSession request/response types - Add message_id parameter to PromptRequest - Add AuthCapabilities, AuthEnvVar, AuthMethodAgent, AuthMethodEnvVar types - Rename KillTerminalCommandRequest/Response to KillTerminalRequest/Response - Rename SetSessionConfigOptionRequest to SetSessionConfigOptionSelectRequest - Promote session/list from unstable to stable - Update agent/client routers, interfaces, examples, and tests accordingly Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
|
Thank you for your contribution. It looks great. I’ll merge it first and then do some cross-language comparisons. |
|
@PsiACE Do you think we could have a release so that I can already try it out ? Even if it's a beta release or any other format ? Can't wait to try this out |
|
hi @Nemtecl , I’ve just released version 0.9.0a1 for testing. Let's give it a try
|
|
Hi @PsiACE thanks ! So far, the tests I did with the SDK are grerat ! Do you think we could move to a |
Thanks @Nemtecl I'm currently doing a final review and closing some long-standing PRs; I expect the new version to be released within 24 hours. |
Fixes #2678 `agent-client-protocol` v0.9.0 upgraded the ACP schema from v0.10.8 to v0.11.2 ([agentclientprotocol/python-sdk#80](agentclientprotocol/python-sdk#80)), which removed the `SessionConfigOption` wrapper type. Config options are now bare `SessionConfigOptionSelect` / `SessionConfigOptionBoolean` instances. Since `deepagents-acp` pins `agent-client-protocol>=0.8.0` with no upper bound, new installs resolve to v0.9.0 and hit `ImportError: cannot import name 'SessionConfigOption' from 'acp.schema'` at startup. Uses a conditional import to support both v0.8.x (with `SessionConfigOption` wrapper) and v0.9.0+ (without wrapper). When the wrapper is available, config options are constructed as `SessionConfigOption(root=SessionConfigOptionSelect(...))`; when absent, they are bare `SessionConfigOptionSelect(...)` instances. All 76 existing ACP tests pass. ``` $ pytest tests/ -v ======================== 76 passed, 1 warning in 3.31s ========================= ``` > This contribution was developed with AI assistance (Cursor). --------- Co-authored-by: shengyi <shengyi.tang@shopee.com> Co-authored-by: Jacob Lee <jacoblee93@gmail.com> Co-authored-by: Vivek Trivedy <vivek.trivedy@langchain.dev>
Summary
Upgrades the ACP schema from v0.10.8 to v0.11.2, regenerates all derived code, and wires up new protocol features.
Key changes:
session/list(previously unstable),session/close(new, unstable)CloseSessionRequest/Response,KillTerminalRequest/Response,FileSystemCapabilities,SetSessionConfigOptionSelectRequest,SetSessionConfigOptionBooleanRequest,AuthMethodEnvVar,AuthMethodTerminal,SessionConfigBooleanKillTerminalCommandRequest/Response→KillTerminalRequest/Response,FileSystemCapability→FileSystemCapabilities,SetSessionConfigOptionRequestsplit into typed select/boolean variantsschema.pyandmeta.pyviamake gen-allTesting
make testpasses (all existing tests + newtest_list_sessions_stableandtest_call_unstable_protocol/test_call_unstable_protocol_warningupdated for new stable/unstable routing)make checkpasses (ruff lint + format)Docs & screenshots
Example files (
examples/client.py,examples/gemini.py) updated to use renamed types.Checklist
feat:,fix:).make gen-all) are called out if applicable.